#ifndef DEFINE_H
#define DEFINE_H

#include <QString>

const QString SETTING_FILE_PATH = "config.ini";

// addresses
const QString ADDRESS_RECOGNIZE = "https://fanyi-api.baidu.com/api/trans/vip/language";
const QString ADDRESS_TRANSLATE = "http://api.fanyi.baidu.com/api/trans/vip/translate";

// KEY for request
const QString KEY_TEXT = "q";
const QString KEY_APPID = "appid";
const QString KEY_SALT = "salt";
const QString KEY_SIGN = "sign";
const QString KEY_FROM = "from";
const QString KEY_TO = "to";

// KEY for reply
const QString KEY_DATA = "data";
const QString KEY_SRC = "src";
const QString KEY_RESULT = "trans_result";
const QString KEY_DST = "dst";

// Language type string
const QString LANGUAGE_EN = "en";
const QString LANGUAGE_ZH = "zh";
enum Language {
    Unknow = 0,
    En,
    Zh
};

#endif // DEFINE_H
